package com.apusic.service;

import java.util.List;

import com.apusic.dao.UserGroupRDao;
import com.apusic.entity.UserGroupR;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/** 
 * @author 陈庆钊
 * @version 2017-11-6 下午4:22:42
 * @Email parkme210@126.com
 */
@Qualifier
@Service("userGroupRService")
public class UserGroupRService{
	
	@Autowired
	private UserGroupRDao userGroupRDao;

	public List<UserGroupR> selectByObj(UserGroupR group) {
		// TODO Auto-generated method stub
		return userGroupRDao.selectByObj(group);
	}

	public void saveUserGroupR(UserGroupR group) {
		userGroupRDao.insert(group);
		
	}

	public void updateUserGroupR(UserGroupR group) {
		userGroupRDao.updateByPrimaryKeySelective(group);
		
	}

}
